package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.io.Serializable;


/**
 * 用户会员信息
 * @author XJY
 */
public class Uservip implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long userId;					    //用户id
	private String nickname;				    //用户昵称
	private String gender;					    //用户的性别，值为1时是男性，值为2时是女性，值为0时是未知
	private String avatarUrl;				    //用户头像
	private String country;					    //用户国家
	private String province;				    //用户省份
	private String city;					    //用户城市
	private Long accountId;					    //账号id
	private String loginName;				    //登录账号
	private String userNo;					    //用户编码
	private String sourceCode;					//渠道
	private Integer memberId;					//会员id
	private Date registerTime;					//注册时间

    public Uservip(){

    }

    public Uservip(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Uservip(Long id,Date gmtCreated,Integer delStatus,Date gmtModify,Long userId,String nickname,String gender,String avatarUrl,String country,String province,String city,Long accountId,String loginName,String userNo,String sourceCode,Integer memberId,Date registerTime) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
       this.userId=userId;
       this.nickname=nickname;
       this.gender=gender;
       this.avatarUrl=avatarUrl;
       this.country=country;
       this.province=province;
       this.city=city;
       this.accountId=accountId;
       this.loginName=loginName;
       this.userNo=userNo;
       this.sourceCode=sourceCode;
       this.memberId=memberId;
       this.registerTime=registerTime;
    }

    public Uservip(Long userId,String nickname,String gender,String avatarUrl,String country,String province,String city,Long accountId,String loginName,String userNo,String sourceCode,Integer memberId,Date registerTime) {
        this.gmtCreated=new Date();
        this.delStatus=DelStatus.NODEL;
        this.gmtModify=gmtCreated;
        this.userId=userId;
        this.nickname=nickname;
        this.gender=gender;
        this.avatarUrl=avatarUrl;
        this.country=country;
        this.province=province;
        this.city=city;
        this.accountId=accountId;
        this.loginName=loginName;
        this.userNo=userNo;
        this.sourceCode=sourceCode;
        this.memberId=memberId;
        this.registerTime=registerTime;
     }

	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setUserId(Long userId){
		this.userId=userId;
	}

	public Long getUserId(){
		return userId;
	}

	public void setNickname(String nickname){
		this.nickname=nickname;
	}

	public String getNickname(){
		return nickname;
	}

	public void setGender(String gender){
		this.gender=gender;
	}

	public String getGender(){
		return gender;
	}

	public void setAvatarUrl(String avatarUrl){
		this.avatarUrl=avatarUrl;
	}

	public String getAvatarUrl(){
		return avatarUrl;
	}

	public void setCountry(String country){
		this.country=country;
	}

	public String getCountry(){
		return country;
	}

	public void setProvince(String province){
		this.province=province;
	}

	public String getProvince(){
		return province;
	}

	public void setCity(String city){
		this.city=city;
	}

	public String getCity(){
		return city;
	}

	public void setAccountId(Long accountId){
		this.accountId=accountId;
	}

	public Long getAccountId(){
		return accountId;
	}

	public void setLoginName(String loginName){
		this.loginName=loginName;
	}

	public String getLoginName(){
		return loginName;
	}

	public void setUserNo(String userNo){
		this.userNo=userNo;
	}

	public String getUserNo(){
		return userNo;
	}

	public void setSourceCode(String sourceCode){
		this.sourceCode=sourceCode;
	}

	public String getSourceCode(){
		return sourceCode;
	}

	public void setMemberId(Integer memberId){
		this.memberId=memberId;
	}

	public Integer getMemberId(){
		return memberId;
	}

	public void setRegisterTime(Date registerTime){
		this.registerTime=registerTime;
	}

	public Date getRegisterTime(){
		return registerTime;
	}

}
